package ar.edu.itba.it.pdc.configuration.models.filters.destinyFilters;

import ar.edu.itba.it.pdc.configuration.models.Request;
import ar.edu.itba.it.pdc.monitoring.ProxyMonitoring;

public class DestinyAllFilter extends DestinyFilter{

	public DestinyAllFilter() {
		setApplyOnRequest(true);
		setApplyOnResponse(false);
	}
	
	@Override
	public boolean applyFilterOnRequest(Request req) {
		ProxyMonitoring.getInstance().addAllBlock();
		return false;
	}
		
	@Override
	public String getContent() {
		return "All";
	}
	
	@Override
	public String getCriteria() {
		return "All";
	}
}
